#pragma once

enum CBStates
{
	WAIT_PASSENGER, WAIT_FOR_RESPONSE, WAIT_FOR_ARRIVAL, LOAD_PASSENGERS
};

class CallButton
{
public:
	CallButton(void);
	~CallButton(void);

	int elevatorID;

	void elevatorLeaving(int elevID, bool QEmpty); // if queue is not empty go to wait for response
	void callElevator(void);
	void elevatorLoading(int elevID); // check if the elevID are the same
	bool isButtonPushed(int elevID);
	void init(void);
private:
	CBStates callState;
};

